home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / varia / egebook.lha / ege.book / 5 / Professor.h < prev    next >
C/C++ Source or Header  |  1992-06-07  |  429b  |  25 lines

  1. #ifndef Professor_h
  2. #define Professor_h
  3.  
  4. #include "Teacher.h"
  5. #include "Researcher.h"
  6. #include "Collection.h"
  7.  
  8. class Professor: public Teacher, public Researcher {
  9.  public:
  10.   static Collection *All;
  11.   Professor(String n):Person(n){
  12.     All->add(this);
  13.   };
  14.   void print(){
  15.     Teacher::print();
  16.   };
  17.   Example* alike(String &name) {
  18.     return (new Professor(name));
  19.   };
  20. };
  21.  
  22. Collection* Professor::All = new Collection;
  23.  
  24. #endif
  25.